package com.java.excend.test_1;

/**
 * @author luzhikun
 * @date 2020/12/5- 19:16
 */
public class Cylinder extends Circle1 {
    private double length;

    public Cylinder() {
        this.length = 1;
    }

    public Cylinder(double length) {

        this.length = length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    //获取体积
    public double findVuluem() {
        return area() * length;
    }
}
